package com.itheima.spec.service;


import com.itheima.goods.pojo.Goods;
import entity.PageResult;
import entity.Result;

import java.util.List;

public interface GoodsService {



    public Goods findById(Integer id);

    public void add(Goods goods);

    public void upGoods(Integer id) throws Exception;

    public void downGoods(Integer id) throws Exception;

    public void delete(Integer id);

    public void updateStatus(Integer id, String status);

    public List<Goods> findAll();

    Result buy(Integer goodId, Integer buyNum);
}
